<template>
	<view style="padding-bottom: 10px;">
		<view class="main_container" @click="click()">
			<u-row>
				<u-col span="2">
					<view style="padding: 2vw;">
						<u-image :src="image_src" height="10vw" width="10vw" radius="15px" />
					</view>
				</u-col>
				<u-col span="10">
					<text>{{message}}</text>
				</u-col>
			</u-row>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			image_src: String,
			message: String
		},
		data() {
			return {
			}
		},
		methods: {
			click() {
				this.$emit("cellClicked")
			}
		}
	}
</script>

<style>
	.main_container {
		height: 14vw;
		border-radius: 15px;
		background-color: #e5e5e5;
	}
</style>